import request from '@/utils/request'

// 查询风机运行代码列表
export function listFengjiruncode(query) {
  return request({
    url: '/ruoyi-yuce/fengjiruncode/list',
    method: 'get',
    params: query
  })
}

// 查询风机运行代码详细
export function getFengjiruncode(id) {
  return request({
    url: '/ruoyi-yuce/fengjiruncode/' + id,
    method: 'get'
  })
}

// 新增风机运行代码
export function addFengjiruncode(data) {
  return request({
    url: '/ruoyi-yuce/fengjiruncode',
    method: 'post',
    data: data
  })
}

// 修改风机运行代码
export function updateFengjiruncode(data) {
  return request({
    url: '/ruoyi-yuce/fengjiruncode',
    method: 'put',
    data: data
  })
}

// 删除风机运行代码
export function delFengjiruncode(id) {
  return request({
    url: '/ruoyi-yuce/fengjiruncode/' + id,
    method: 'delete'
  })
}
